{$header} 
{$menu}
{$tiny}
<link rel="stylesheet" type="text/css" href="{$url}css/jquery-ui-1.8.8.custom.css">

<link rel="stylesheet" href="{$url}css/autocompleate.css" />
<script type="text/javascript" src="{$url}js/jquery.inc.js"></script>
	
<div id="content">
    <div id="tab" class="radius-top">Promotion &gt;&gt; Add
        <div class="clear"></div></div>
		{$form_open}             
        <table>
              <tbody>
              <tr>
                <td align="left">Get Product</td>
                <td class="hotelInfo"><input type="text" name="g_product" id="g_product"  /></td>
              </tr>
              <tr>
                  <td align="left">Status&nbsp;<span class="errors">*</span></td>
                  <td class="hotelInfo">
                  <input type="radio" value="1" name="status" {$sa}>
                  Active<input type="radio" value="0" name="status" {$sd}>Inactive <span class="errors">{$errorstatus}</span></td>
                </tr>
                <tr>
                  <td align="left">Code&nbsp;<span class="errors">*</span></td>
                  <td class="hotelInfo"><input type="text" name="code" id="code" value="{$code}" />
                  <span class="errors">{$errorcode}</span>
                  </td>
                </tr>
                <tr>
                  <td align="left">Name En&nbsp;<span class="errors">*</span></td>
                  <td class="hotelInfo"><label for="txtCategory"></label>
                  <input type="text" name="title_en" id="title_en" value="{$title_en}" /><span class="errors">{$errortitle_en}</span></td>
                </tr>
                 <tr>
                  <td align="left"> Name Cn</td>
                  <td class="hotelInfo"><label for="txtCategory"></label>
                  <input type="text" name="title_cn" id="title_cn" value="{$title_cn}" /></td>
                </tr>
                 <tr>
                  <td align="left"> Name Th</td>
                  <td class="hotelInfo"><label for="txtCategory"></label>
                  <input type="text" name="title_th" id="title_th" value="{$title_th}" /></td>
                </tr>
                 <tr>
                   <td align="left" valign="top">Description En&nbsp;<span class="errors">*</span></td>
                   <td class="hotelInfo">
                   
                   <textarea  id="elm1" name="desc_en" cols="45" rows="5">{$desc_en}</textarea><span class="errors">{$errordesc_en}</span></td>
                 </tr>
                 <tr>
                   <td align="left" valign="top">Description Cn</td>
                   <td class="hotelInfo"><textarea name="desc_cn"  id="elm2" cols="45" rows="5">{$desc_cn}</textarea></td>
                 </tr>
                 <tr>
                   <td align="left" valign="top">Description Th</td>
                   <td class="hotelInfo"><textarea name="desc_th"  id="elm3" cols="45" rows="5">{$desc_th}</textarea></td>
                 </tr>
                 <tr>
                   <td align="left" valign="top">Picture</td>
                   <td class="hotelInfo">{$img}<input type="file" name="pic" id="txtCategory6"  />
                   <span class="errors">{$errorpic}</span>
                   </td>
                 </tr>
                 <tr>
                   <td align="left" valign="top">Price&nbsp;<span class="errors">*</span></td>
                   <td class="hotelInfo"><input type="text" name="price" id="price" value="{$price}" placeholder="0.00"  />
                   <span class="errors">{$errorprice}</span>
                   </td>
                 </tr>
                 <tr>
                   <td align="left" valign="top">Point gain&nbsp;<span class="errors">*</span></td>
                   <td class="hotelInfo"><input type="text" name="point_gain" id="point_gain" value="{$point_gain}" placeholder="0.00"  />
                   <span class="errors">{$errorpoint_gain}</span>
                    </td>
                 </tr>
                 <tr>
                   <td align="left" valign="top">Point_spend&nbsp;<span class="errors">*</span></td>
                   <td class="hotelInfo"><input type="text" name="point_spend" id="point_spend" value="{$point_spend}" placeholder="0.00"  />
                   <span class="errors">{$errorpoint_spend}</span>
                   <input type="hidden" name="pkid" id="pkid" value="{$pkid}">
                   </td>
                 </tr>
                 <tr>
                   <td align="left" valign="top">Start date</td>
                   <td class="hotelInfo"><input type="text" name="startdate" id="datepicker"  value="{$startdate}"/></td>
                 </tr>
                 <tr>
                   <td align="left" valign="top">End date</td>
                   <td class="hotelInfo"><input type="text"  name="enddate" id="datepicker2" value="{$enddate}"  /></td>
                 </tr>
              </tbody>
            </table>
			{$scripts}
            <script type="text/javascript" src="{$url}js/jquery-1.4.4.min.js"></script>
			<script type="text/javascript" src="{$url}js/jquery-ui-1.8.8.custom.min.js"></script>
            <div id="bnt" class="mws-form-row">
                <input type="submit"  name="bntSubmit" class="mws-button green" value="Save"  />
                <input type="button" name="bntSubmit" class="mws-button green" value="Cancel" onClick="window.location='{$url}manage_product/promotion_list';" />
  </div>
		{$form_close}
  </div>
  {$footer}